import java.util.Scanner;
import java.util.Stack;

/**
 * @author by 何坤
 * @Classname Test
 * @Description TODO
 * @Date 2019/10/21 18:58
 */
public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = null;
        String[] input = new String[4];
        int[] data = new int[4];
        if (sc.hasNextLine()){
            s = sc.nextLine();
            input = s.split(" ");
        }

        for (int i = 0; i<input.length; i++){
            data[i] = Integer.parseInt(input[i]);
        }
        System.out.println((data[0]+data[2])/2 + " " + (data[1]+data[3])/2);
    }
}
